package org.nvframe.util.settings;

import java.util.ArrayList;
import java.util.List;

public class SettingList implements SettingItem {
	
	private List<Setting> list = new ArrayList<Setting> ();

	public SettingList(List<String> list) {
		this.list = new ArrayList<Setting> ();
		
		for(String value : list)
			this.list.add(new SettingImpl(value));
	}
	
	public List<String> getStrings() {
		List<String> returnLst = new ArrayList<String> ();
		
		for(Setting setting : list)
			returnLst.add(setting.getString());
		
		return returnLst;
	}

	public List<Integer> geInts() {
		List<Integer> returnLst = new ArrayList<Integer> ();
		
		for(Setting setting : list)
			returnLst.add(setting.getInt());
		
		return returnLst;
	}

	public List<Float> getFloats() {
		List<Float> returnLst = new ArrayList<Float> ();
		
		for(Setting setting : list)
			returnLst.add(setting.getFloat());
		
		return returnLst;
	}
	
	public List<Double> getDoubles() {
		List<Double> returnLst = new ArrayList<Double> ();
		
		for(Setting setting : list)
			returnLst.add(setting.getDouble());
		
		return returnLst;
	}
	
}
